#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<vector>
using namespace std;
#include"list.h"
void func(const lf::list<int>& lt)
{
	lf::list<int>::const_reverse_iterator rit = lt.rbegin();
	while (rit != lt.rend())
	{
		//*rit += 1;

		cout << *rit << " ";
		rit++;
	}
	cout << endl;
}
int main()
{
	//lf::test_list5();
	lf::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);

	lf::list<int>::iterator it = lt.begin();
	while (it != lt.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << endl;

	lf::list<int>::reverse_iterator rit = lt.rbegin();
	while (rit != lt.rend())
	{
		//*rit += 1;

		cout << *rit << " ";
		rit++;
	}
	cout << endl;

	func(lt);
	return 0;
}
